package com.aounhui.productor.service.impl;

import com.aounhui.productor.entity.CommodityFactory;
import com.aounhui.productor.entity.CommodityFactoryExample;
import com.aounhui.productor.mapper.CommodityFactoryMapper;
import com.aounhui.productor.service.CommodityFactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author aounhui
 * @version 1.0
 * @date 2021/6/18 14:06
 */
@Service
public class CommodityFactoryServiceImpl implements CommodityFactoryService {
    @Autowired
    private CommodityFactoryMapper commodityFactoryMapper;
    @Override
    public CommodityFactory get(String name) {

        return commodityFactoryMapper.selectByPrimaryKey(name);
    }
}
